package net.hn.hnms.biz.project.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 刘昊
 * @date 2024-03-11 16:53
 * 问题整改表
 */
@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "problem rectification", schema = "xmgl", catalog = "huaneng-manage")
public class ProblemRectification extends BaseModel implements Serializable {

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.ASSIGN_UUID)
    private String problemId;

    @ApiModelProperty(value = "项目id")
    private String projectId;

    @ApiModelProperty(value = "项目名称")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String projectName;

    @ApiModelProperty(value = "整改下发日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date deliveryDate;

    @ApiModelProperty(value = "整改完成日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date completioDate;

    @ApiModelProperty(value = "整改标题")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String rectificationTitle;

    @ApiModelProperty(value = "整改人")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String corrector;

//    @ApiModelProperty(value = "施工单位")
//    @TableField(updateStrategy= FieldStrategy.IGNORED)
//    private String constructionUnit;

    @ApiModelProperty(value = "整改内容")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String rectificationContent;

    @ApiModelProperty(value = "公司编码")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String companyCode;
}
